package com.harvin;

import java.util.Observable;
import java.util.Observer;

public class Army implements Observer {

//	public void update() {
//		System.out.println("Army: we are attacking the fundation.");
//	}
	
	public void attack(Observable subject){
		if(subject instanceof Fundation){
			Fundation fundation = (Fundation) subject;
			fundation.under_attack();
		}
	}

	public void update(Observable o, Object arg) {
		System.out.println("Army: we are attacking the fundation.");
	}

}
